package com.berchen.schedu.jdk;

import java.util.TimerTask;
import java.util.concurrent.atomic.AtomicInteger;

public class DispatchTimerTask extends TimerTask {
    private final AtomicInteger atomicInteger=new AtomicInteger(1);
    @Override
    public void run() {
        System.out.println(atomicInteger.getAndIncrement());

    }
}
